import { _decorator, Component, Node } from 'cc';
// import { UI } from './enum/UI';
import { Bundle } from './enum/Bundle';
import { ResMgr } from './manager/ResMgr';
// import { UIMgr } from './manager/UIMgr';
import UI from 'db://assets/Script/Manager/UI';
import { UILoading } from './ui/UILoading';
const { ccclass, property } = _decorator;

@ccclass('Scene/Main')
export class Main extends Component {

    protected async start() {
        await ResMgr.loadDir(Bundle.Resources)
        // UIMgr.open(UI.Loading, null, { uiBundle: Bundle.Resources })

        UI.Instance.CreatePanel_sub(`resources`, `UILoading`, UILoading);
    }
}